package com.lili.operate.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lili.model.operate.Article;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ArticleMapper extends BaseMapper<Article> {
    /**
     * 删除
     * @param id
     * @return
     */
    public int deleteArticle(long id);

    /**
     * 根据id修改文章的状态
     * @param id
     * @param status
     * @return
     */
    public int statusArticle(@Param("id") long id, @Param("status") Byte status);
}
